﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Taoyl.CodeTraceDAL
{
    public class SqlSugarService
    {

        public void SetConnectionString(string connStr)
        {
            SqlSugarHelper.ConnectionString=connStr;
        }

        public void CreateTable<T>(int strLength=100)
        {
            SqlSugarHelper.
                SqlSugarClient.
                CodeFirst.
                SetStringDefaultLength(strLength).
                InitTables(typeof(T));
        }
    }
}
